package pf.springBoot.springBootSSO.controller;


import org.springframework.boot.autoconfigure.web.servlet.error.AbstractErrorController;
import org.springframework.boot.web.servlet.error.ErrorAttributes;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
public class MyErrorPageController //extends AbstractErrorController 
{
 
//    public MyErrorPageController(ErrorAttributes errorAttributes) {
//		super(errorAttributes);
//		// TODO Auto-generated constructor stub
//	}
	@GetMapping("error404")
    public String toPage404(){
        return "error/error404";
    }
    @RequestMapping("error400")
    public String toPage400(){
        return "error/error400";
    }
    @RequestMapping("error500")
    public String toPage500(){
        return "error/error500";
    }
//	@Override
//	public String getErrorPath() {
//		// TODO Auto-generated method stub
//		return null;
//	}
 
}